import request from "@/config/utils/request";

// 审批记录
export function getApprovalRecord(data) {
  return request({
    url: "/apis/smp/approval/get/record",
    method: "post",
    data
  });
}

// 查询审批按钮
export function getApprovalButton(data) {
  return request({
    url: "/apis/smp/approval/get/button",
    method: "post",
    data
  });
}

// 同意
export function postExecuteAgree(data) {
  return request({
    url: "/apis/smp/approval/execute/agree",
    method: "post",
    data
  });
}

// 不同意
export function postExecuteDisagree(data) {
  return request({
    url: "/apis/smp/approval/execute/disagree",
    method: "post",
    data
  });
}

// 退回
export function postExecuteReturn(data) {
  return request({
    url: "/apis/smp/approval/execute/return",
    method: "post",
    data
  });
}

// 转审
export function postExecuteTransfer(data) {
  return request({
    url: "/apis/smp/approval/execute/transfer",
    method: "post",
    data
  });
}

// 协办
export function postExecuteAssist(data) {
  return request({
    url: "/apis/smp/approval/execute/assist",
    method: "post",
    data
  });
}

// // 阅读记录
// export function getReadRecord(data) {
//   return request({
//     url: "/apis/asca/read/record/list",
//     method: "post",
//     data
//   });
// }

// // 提交审批操作
// export function getApprovalExecute(data) {
//   return request({
//     url: "/apis/asca/approval/execute",
//     method: "post",
//     data
//   });
// }

// 退回人员选择查询
export function getReturnPerson(data) {
  return request({
    url: "/apis/smp/approval/choose/returnees",
    method: "post",
    data
  });
}

// 转审协办知会选择
export function getPartyRelationTree(data) {
  return request({
    url: "/apis/smp/approval/choose/others",
    method: "post",
    data
  });
}
